package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
public class WebsiteResponse implements Serializable {
    @ApiModelProperty("图片（轮播|多张逗号分隔）")
    private String photos;
    @ApiModelProperty(value = "企业介绍", example = "<p class=\"bgfff pt15 pl15 pr15 pb15 fs14 ca8 borderbox w100p\"\n" +
            ">测试</p><img src=\"https://file.hongmushichang.com/2871853169851/photo/711236441476169728.jpg\" alt=\"\" class=\"w100p\" mode=\"widthFix\">")
    private String companyIntroduce;
    @ApiModelProperty(value = "产品介绍", example = "<p class=\"bgfff pt15 pl15 pr15 pb15 fs14 ca8 borderbox w100p\"\n" +
            ">阿龙</p><img src=\"https://file.hongmushichang.com/5857605169851/photo/711242673385635840.jpg\" alt=\"\" class=\"w100p\" mode=\"widthFix\">")
    private String goodsIntroduce;
    @ApiModelProperty("联系电话")
    private String phone;
    @ApiModelProperty(value = "公司视频", dataType = "WebsiteResponse.Video")
    private List<Video> videos;
    @ApiModelProperty("表单信息数")
    private Long num;

    @ApiModel("WebsiteResponse.Video")
    @Data
    @Builder
    public static class Video {
        @ApiModelProperty("视频ID")
        private Integer videoId;
        @ApiModelProperty("描述")
        private String describes;
        @ApiModelProperty("视频地址")
        private String url;
        @ApiModelProperty("封面")
        private String cover;
    }
}